package com.hishop.member.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.hishop.common.utils.PageUtils;
import com.hishop.member.entity.MemberEntity;
import com.hishop.member.exception.PhoneExistException;
import com.hishop.member.exception.UserNameExistException;
import com.hishop.member.vo.MemberLoginVo;
import com.hishop.member.vo.MenberRegistVo;

import java.util.Map;

/**
 * 会员
 *
 * @author tanwenbin
 * @email 2466082499@qq.com
 * @date 2024-03-13 16:19:40
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    MemberEntity login(MemberLoginVo vo);

    void regist(MenberRegistVo vo);

    void ckeckPhoneUnique(String phone) throws PhoneExistException;

    void ckeckUserNameUnique(String name) throws UserNameExistException;
}

